﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Marmat.Forms.Skin
{
    /// <summary>
    ///  表示将处理的方法 System.Windows.Forms.TreeView.BeforeCheck, ，System.Windows.Forms.TreeView.BeforeCollapse,
    ///  ，System.Windows.Forms.TreeView.BeforeExpand, ，或 System.Windows.Forms.TreeView.BeforeSelect</summary>
    ///  事件 System.Windows.Forms.TreeView。
    ///  <param name="sender">事件源。</param>
    /// <param name="e">包含事件数据的 System.Windows.Forms.TreeViewCancelEventArgs。</param>
    public delegate void TreeViewCancelEventHandler(object sender, TreeViewCancelEventArgs e);

    /// <summary>
    /// 表示将处理的方法 System.Windows.Forms.TreeView.AfterCheck, ，System.Windows.Forms.TreeView.AfterCollapse,
    /// System.Windows.Forms.TreeView.AfterExpand, ，或 System.Windows.Forms.TreeView.AfterSelect
    /// 事件 System.Windows.Forms.TreeView。
    /// </summary>
    /// <param name="sender">事件源。</param>
    /// <param name="e">包含事件数据的 System.Windows.Forms.TreeViewEventArgs。</param>
    public delegate void TreeViewEventHandler(object sender, TreeViewEventArgs e);

    /// <summary>
    /// 表示将用来处理 System.Windows.Forms.TreeView.DrawNode 的 System.Windows.Forms.TreeView事件的方法。
    /// </summary>
    /// <param name="sender">事件源。</param>
    /// <param name="e">包含事件数据的 System.Windows.Forms.DrawTreeNodeEventArgs。</param>
    public delegate void DrawTreeNodeEventHandler(object sender, DrawTreeNodeEventArgs e);

    /// <summary>
    /// 表示将用来处理 System.Windows.Forms.TreeView.DrawNode 的 System.Windows.Forms.TreeView事件的方法。
    /// </summary>
    /// <param name="sender">事件源。</param>
    /// <param name="e">包含事件数据的 System.Windows.Forms.DrawTreeNodeEventArgs。</param>
    public delegate void MeasureNodeEventHandler(object sender, MeasureTreeNodeEventArgs e);



    /// <summary>
    /// 表示将用来处理 System.Windows.Forms.TreeView.NodeMouseHover 的 System.Windows.Forms.TreeView事件的方法。
    /// </summary>
    /// <param name="sender">事件源。</param>
    /// <param name="e">一个 System.Windows.Forms.TreeNodeMouseHoverEventArgs 包含事件数据。</param>
    public delegate void TreeNodeMouseHoverEventHandler(object sender, TreeNodeMouseHoverEventArgs e);

    /// <summary>
    /// 表示将处理 System.Windows.Forms.TreeView.NodeMouseClick 的 System.Windows.Forms.TreeView.NodeMouseDoubleClick 和 System.Windows.Forms.TreeView 事件的方法。
    /// </summary>
    /// <param name="sender">事件源。</param>
    /// <param name="e">包含事件数据的 System.Windows.Forms.TreeNodeMouseClickEventArgs。</param>
    public delegate void TreeNodeMouseClickEventHandler(object sender, TreeNodeMouseClickEventArgs e);
}
